<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>选择器</title>

    <style>
        /*元素选择器*/
        div{
            color: cadetblue;
        }

        /*类选择器*/
        .cls{
            color: red;
        }

        /*id选择器*/
        #d1{

            color: black;
        }



    </style>

</head>
    <body>
    <div>div1</div>

    <div class="cls">div1</div>

    <div id="d1">div1</div>

    </body>
</html>